package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Classname DishFlavorMapper
 * @Description TODO
 * @Version 1.0.0
 * @Date 2024/6/24 10:45
 * @Created by Ren
 */
@Mapper
public interface DishFlavorMapper {
    /**
     * 批量插入口味数据
     *
     * @param dishFlavorList
     */
    void insertBatch(List<DishFlavor> dishFlavorList);

    /**
     * 批量删除口味
     *
     * @param ids
     */
    void deleteBatch(List<Long> ids);

    /**
     * 根据DishId来返回口味数据
     *
     * @param id
     */

    List<DishFlavor> getDishFlavorByDishId(Long id);

    /**
     * 根据dishid去删除对应的口味数据
     */
    void deleteDishFlavorByDishId(Long id);


}
